#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#define PI 3.14
int main()
{
	double r, C;
	scanf("%lf", &r);

	C = 2 * PI * r;

	printf("%lf", C);
	return 0;
}